package vn.gq.udv.tab;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;


public abstract class BaseFragment extends Fragment {
	
	protected ViewGroup mLayout;
	
	public abstract int getContainerId();
	
	public abstract int getLayoutId();
	
	public abstract void createView();
		

	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container,
			Bundle savedInstanceState) {
		mLayout = (ViewGroup) inflater.inflate(getLayoutId(), container, false);
		createView();
		return mLayout;
	}
	
	
}
